<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Emr\V20190103\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeGlobalConfig response structure.
 *
 * @method boolean getEnableResourceSchedule() Obtain Whether the resource scheduling feature is enabled.
 * @method void setEnableResourceSchedule(boolean $EnableResourceSchedule) Set Whether the resource scheduling feature is enabled.
 * @method string getActiveScheduler() Obtain Currently effective resource scheduler.
 * @method void setActiveScheduler(string $ActiveScheduler) Set Currently effective resource scheduler.
 * @method CapacityGlobalConfig getCapacityGlobalConfig() Obtain Information of the fair scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setCapacityGlobalConfig(CapacityGlobalConfig $CapacityGlobalConfig) Set Information of the fair scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method FairGlobalConfig getFairGlobalConfig() Obtain Information of the capacity scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setFairGlobalConfig(FairGlobalConfig $FairGlobalConfig) Set Information of the capacity scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getScheduler() Obtain Latest resource scheduler.
 * @method void setScheduler(string $Scheduler) Set Latest resource scheduler.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeGlobalConfigResponse extends AbstractModel
{
    /**
     * @var boolean Whether the resource scheduling feature is enabled.
     */
    public $EnableResourceSchedule;

    /**
     * @var string Currently effective resource scheduler.
     */
    public $ActiveScheduler;

    /**
     * @var CapacityGlobalConfig Information of the fair scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $CapacityGlobalConfig;

    /**
     * @var FairGlobalConfig Information of the capacity scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $FairGlobalConfig;

    /**
     * @var string Latest resource scheduler.
     */
    public $Scheduler;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param boolean $EnableResourceSchedule Whether the resource scheduling feature is enabled.
     * @param string $ActiveScheduler Currently effective resource scheduler.
     * @param CapacityGlobalConfig $CapacityGlobalConfig Information of the fair scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param FairGlobalConfig $FairGlobalConfig Information of the capacity scheduler.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Scheduler Latest resource scheduler.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("EnableResourceSchedule",$param) and $param["EnableResourceSchedule"] !== null) {
            $this->EnableResourceSchedule = $param["EnableResourceSchedule"];
        }

        if (array_key_exists("ActiveScheduler",$param) and $param["ActiveScheduler"] !== null) {
            $this->ActiveScheduler = $param["ActiveScheduler"];
        }

        if (array_key_exists("CapacityGlobalConfig",$param) and $param["CapacityGlobalConfig"] !== null) {
            $this->CapacityGlobalConfig = new CapacityGlobalConfig();
            $this->CapacityGlobalConfig->deserialize($param["CapacityGlobalConfig"]);
        }

        if (array_key_exists("FairGlobalConfig",$param) and $param["FairGlobalConfig"] !== null) {
            $this->FairGlobalConfig = new FairGlobalConfig();
            $this->FairGlobalConfig->deserialize($param["FairGlobalConfig"]);
        }

        if (array_key_exists("Scheduler",$param) and $param["Scheduler"] !== null) {
            $this->Scheduler = $param["Scheduler"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
